{% extends 'account/base.html' %}

{% block title %}Friends for {{ username }}{% endblock %}

{% block content %}
    <div class="row">
        <div class="col-md-6 border p-4">
    <h2>{{ username }}的好友：</h2>

    <ul class="list-group">
    {% for friend in friend_list %}
        <li class="list-group-item list-group-item-action"><a href="{% url 'friends' friend.username %}">{{ friend.username }}</a></li>
    {% empty %}
        <li class="text-muted">还没有朋友!</li>
    {% endfor %}
    </ul>
        </div>
    </div>

    <h2 class="mt-4">好友的最近书签: </h2>
    {% include 'bookmarks/_bookmark_list.html' %}

{% endblock %}
